<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>宝钢彩涂板管理后台</title>
    <link rel="stylesheet" href="/static/css/normalize.css">
	<link rel="stylesheet" href="/static/css/add.css">
	<link rel="stylesheet" href="/static/css/color-style.css">
	<link rel="stylesheet" href="/static/css/font-awesome.min.css">
    <script type="text/javascript" src="/static/js/jquery-1.11.1.min.js"></script>
</head>
<body>
<form action="{:Url('auth/add')}" method="post" >
	<div class="form-box">
		<div class="top-bar">
			<h5 class="nav-title">设置权限模板</h5>
			<div class="button-container">
				<button type="button" class="button -green center lst" style="width: 60px; height: 28px; line-height: 10px; font-size: 13px;">返回</button>
			</div>
		</div>
		<div class="batch-table">
			<div class="aps-grid-row">
				<div class="aps-grid-col">
					<label for=""><span class="red-color"></span>名称：</label>
				</div>
				<div class="aps-grid-col-lg-18">
					<input type="text" name="auth_name" placeholder="" class="input-one">
				</div>
				<div class="clear"></div>
			</div>
			<!--权限等级-->
			<div class="aps-grid-row">
				<div class="aps-grid-col">
					<label for="">权限等级：</label>
				</div>
				<div class="aps-grid-col-lg-18">
					<select name="auth_level" id="">
						<option value="7">7</option>
						<option value="6">6</option>
						<option value="5">5</option>
						<option value="4">4</option>
						<option value="3">3</option>
						<option value="2">2</option>
						<option value="1">1</option>
						<option value="0">0</option>
					</select>
					<span>0表示超管，数字越大表示权限等级越低</span>
				</div>
				<div class="clear"></div>
			</div>
			<!--分所-->
			<div class="aps-grid-row">
				<div class="aps-grid-col">
					<label for="">分配角色：</label>
				</div>
				<div class="aps-grid-col-lg-18">
					{foreach role as $key => $value}
						<input type="checkbox" name="auth_fun[]" value="{$value.id}">&nbsp;{$value.role_name}
					{/foreach}
				</div>
				<div class="clear"></div>
			</div>
			<!--角色信息-->
			<div class="aps-grid-row">
				<div class="aps-grid-col">
					<label for="">是否权限模板：</label>
				</div>
				<div class="aps-grid-col-lg-18">
					<input type="radio" name="auth_model" value="0">&nbsp;否&nbsp;&nbsp;
					<input type="radio" name="auth_model" value="1" checked>&nbsp;是&nbsp;&nbsp;
				</div>
				<div class="clear"></div>
			</div>
			<div class="aps-grid-row">
				<div class="aps-grid-col">
					<label for="">是否迁移数据：</label>
				</div>
				<div class="aps-grid-col-lg-18">
					<input type="radio" name="copy_data" value="0" checked>&nbsp;否&nbsp;&nbsp;
					<input type="radio" name="copy_data" value="1">&nbsp;是&nbsp;&nbsp;
				</div>
				<div class="clear"></div>
			</div>
			<div class="aps-grid-row">
				<div class="aps-grid-col">
				</div>
				<div class="aps-grid-col-lg-18">
					<div class="button-container">
						<button type="submit" class='button -green center'>提交</div>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
	</div>
</form>
</body>
<script>
    $('.lst').click(function(){
        window.location.href="{:Url('auth/lst')}";
    })

</script>
</html>